package com.wman.learn.Class

import android.content.Context
import android.util.AttributeSet
import android.view.View

/**
 * @ProjectName: wman
 * @Package: com.wman.`class`
 * @ClassName: Kotlin09
 * @Description: java类作用描述
 * @Author: wman
 * @CreateDate: 2019/11/21 17:28
 * @UpdateUser: 更新者
 * @UpdateDate: 2019/11/21 17:28
 * @UpdateRemark: 更新说明
 * @Version: 1.0
 */

/**
 * 默认是 final public
 * 这里open和就是不final
 */
open class Kotlin09 : View, View.OnClickListener {

    //调用构造函数的时候会被调用
    init {
        print("init")
    }

    constructor(context: Context) : super(context) {
        print("constructor")
    }

    constructor(context: Context, attr: AttributeSet?) : this(context, attr, 0) {
        print("constructor")
    }

    constructor(context: Context, attr: AttributeSet?, defStyleAttr: Int) : super(context, attr, 0) {
        print("constructor")
    }


    override fun onClick(p0: View?) {
        TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
    }
}